package com.ruoyi.mapper;

import com.ruoyi.domain.MobilOrderDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 手机端订单详情Mapper接口
 *
 * @author ruoyi
 * @date 2025-01-20
 */
@Mapper
public interface MobileCarOrderDetailsMapper {
    /**
     * 批量插入订单详情
     *
     * @param orderDetailsList 订单详情列表
     * @return 结果
     */
    public int batchInsertOrderDetails(List<MobilOrderDetails> orderDetailsList);

    /**
     * 单个插入订单详情
     *
     * @param orderDetails 订单详情
     * @return 结果
     */
    public int insertOrderDetails(MobilOrderDetails orderDetails);

    /**
     * 根据订单ID查询订单详情
     *
     * @param orderId 订单ID
     * @return 订单详情列表
     */
    public List<MobilOrderDetails> selectOrderDetailsByOrderId(Integer orderId);

    /**
     * 根据订单ID删除订单详情
     *
     * @param orderId 订单ID
     * @return 结果
     */
    public int deleteOrderDetailsByOrderId(Integer orderId);
}
